package com.prx.ThreadDemo;

public class TestDemo {
    public static void main(String[] args) {
        test1();
    }
    /**
     * 多线程的执行
     */
    public static void test1() {
        //创建线程1的实例对象
        Thread thread1 = new ThreadOne();
        //启动线程
        thread1.start();

        //创建线程2的实例对象
        Thread thread2 = new Thread(new ThreadTwo());
        thread2.start();
    }
}
